import java.util.Scanner;
    public class FI {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            int month;
            int[] mon = new int[10000];
            mon[0] = 0;
            mon[1] = 1;


            System.out.println("费式数个数：");
            month = scanner.nextInt();
            System.out.println("费式数：");
            if (month > 2) {
                for (int n = 0; n < 2; n++) {
                    System.out.printf("%3d ", mon[n]);}
                for (int i = 2; i <= month; i++) {
                    mon[i] = mon[i - 1] + mon[i - 2];
                    System.out.printf("%3d ", mon[i]);


                }
            }
            else {

                {
                    for (int n = 1; n <= month; n++) {
                        System.out.printf("%2d", mon[n]);
                    }
                }
            }
        }
    }
